package com.itheima.idea;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入手机号码");
        String s = sc.nextLine();
        String start = s.substring(0,3);
        String end = s.substring(s.length() - 4);
        System.out.println(start + "****" + end);

        System.out.println("--------------");


        String y = "Hello刘岩world";
        String yy = y.substring(5,7);
        System.out.println(yy);


    }
}
